Patch PB bonus projectile knockback #6784
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the pull request
Prevents an issue with PB bonus projectiles.
In a PB, the initial projectile is never "fired", it remains in nullspace. That's fine, since there's special handling in knockback code for a projectile in nullspace, it uses the firer.
In a PB, bonus projectiles are set to the target's loc. That doesn't matter much except for knockback, which uses the position of the projectile vs. the position of the target. The bonus projectile is on the same tile as the target, so it can't give a sane angle, so it defaults to EAST.
This changes the bonus projectile's position to nullspace, matching how the initial projectile works.
Explain why it's good for the game
If a bonus projectile with knockback were ever to be used, this will prevent issues.
Testing Photographs and Procedure
Screenshots & Videos
Put screenshots and videos here with an empty line between the screenshots and the
<details>
tags.Changelog
No player facing changes.